/*
 * Copyright 2009 rashaguo <rashaguo@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef HTTPCLIENT_H
#define HTTPCLIENT_H


/*********************************************************
 *  Http client API based on reliable UDP instead of TCP *
 *  Feature:                                             *
 *  - GET                                                *
 *  - PUT                                                *
 *  - DELETE                                             *
 *  - HEAD                                               *
 *********************************************************/

#include <string>
#include "http_lib.h"

class DataCache;

class HttpClient
{
public:

    HttpClient();

    ~HttpClient();

    // Method
    char* get(std::string url);

    /// TBD for other method
    //http_retcode Put(std::string url, );

    // Data
private:

    DataCache *m_dataCache;

    char * m_filename;

};

#endif
